<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<jsp:directive.include file="/WEB-INF/decorators/taglibs.jsp"/>
<script type="text/javascript">
function addTab(title, href){
	var centerTabs = $("#centerTabs");
	if (centerTabs.tabs("exists", title)) {
		centerTabs.tabs('select', title);
	} else {
		var content = "";
		if (!!href) 
			content = '<iframe scrolling="yes" frameborder="0" src="'+href+'" style="width:100%;height:100%;padding:0px;"></iframe>';
		else
			content = "请检查指定的URL参数";
		centerTabs.tabs("add", {
			title : title,
			closable:true,
			content:content
		});
		centerTabs.setTabClose();
	}
}
</script>
</head>
<body class="easyui-layout">
	<div region="north" border="false" style="height:60px;padding:0px;overflow:hidden;">
		<p>The north content.</p>
	</div>
	<div region="south" border="false" style="height:30px;padding:10px;background:#efefef;overflow:hidden;text-align:center">
	&copy;2012
	</div>
<!-- 	<div region="east" iconCls="icon-reload" title="Tree Menu" split="true" style="width:180px;"> -->
<!-- 		<ul class="easyui-tree" url="tree_data.json"></ul> -->
<!-- 	</div> -->
	<div region="west" split="true" title="Menu" style="width:190px;padding1:1px;overflow:hidden;">
		<div class="easyui-accordion" fit="true" border="false">
			<div title="系统功能" style="padding:10px;overflow:auto;" selected="true" >
				<a class="l-link" href="javascript:addTab('userList', '/pineapple/user/list')">用户列表</a>
				<p>用户列表</p>
				<p>content1</p>
				<p>content1</p>
				<p>content1</p>
				<p>content1</p>
				<p>content1</p>
				<p>content1</p>
				<p>content12</p>
			</div>
			<div title="Title2" style="padding:10px;">
				content2
			</div>
			<div title="Title3" style="padding:10px">
				content3
			</div>
		</div>
	</div>
	<div region="center" style="overflow:hidden;" >
		<div id="centerTabs" class="easyui-tabs" fit="true" border="false">
		<div title="首页" id="fisttab" href="<c:url value='/home/welcome'/>"></div></div>
	</div>
</body>
</html>